package com.game.thrones.domain.webpage;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.validator.constraints.NotBlank;

import com.game.thrones.domain.IdEntity.IdEntityAuto;


//import io.swagger.annotations.ApiModelProperty;

/**
 * 
 * 
 * @Description:新闻
 * 
 * 
 */
//@ApiModel
@Entity
@Table(name = "web_news")
public class WebNewsDO extends IdEntityAuto implements Serializable {
	private static final long serialVersionUID = 1L;
//	@ApiModelProperty("标题")
	@Column(nullable = false, length = 50)
	private String title;
//	@ApiModelProperty("摘要")
	@Column(nullable = false, length = 128)
	private String summary;
//	@ApiModelProperty("正文")
	@Column(nullable = false, length = 2000)
	private String content;
//	@ApiModelProperty("图片1")
	@Column( length = 128)
	private String img1;
//	@ApiModelProperty("图片1尺寸")
	@Column(  length = 128)
	private String img1Size;
//	@ApiModelProperty("图片1路径")
	@Transient
	private String img1Url;
//	@ApiModelProperty("图片2")
	@Column(  length = 128)
	private String img2;
//	@ApiModelProperty("图片2尺寸")
	@Column(  length = 128)
	private String img2Size;
//	@ApiModelProperty("图片2路径")
	@Transient
	private String img2Url;

//	@ApiModelProperty("图片3")
	@Column(  length = 128)
	private String img3;
//	@ApiModelProperty("图片3尺寸")
	@Column(  length = 128)
	private String img3Size;
//	@ApiModelProperty("图片3路径")
	@Transient
	private String img3Url;

//	@ApiModelProperty("类型")
	@NotBlank
	@Column(nullable = false, length = 20)
	private String type;

	public String getImg3() {
		return img3;
	}

	public void setImg3(String img3) {
		this.img3 = img3;
	}

	public String getImg3Size() {
		return img3Size;
	}

	public void setImg3Size(String img3Size) {
		this.img3Size = img3Size;
	}

	public String getImg3Url() {
		return img3Url;
	}

	public void setImg3Url(String img3Url) {
		this.img3Url = img3Url;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImg1() {
		return img1;
	}

	public void setImg1(String img1) {
		this.img1 = img1;
	}

	public String getImg2() {
		return img2;
	}

	public void setImg2(String img2) {
		this.img2 = img2;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getImg1Url() {
		return img1Url;
	}

	public void setImg1Url(String img1Url) {
		this.img1Url = img1Url;
	}

	public String getImg2Url() {
		return img2Url;
	}

	public void setImg2Url(String img2Url) {
		this.img2Url = img2Url;
	}

	public String getImg1Size() {
		return img1Size;
	}

	public void setImg1Size(String img1Size) {
		this.img1Size = img1Size;
	}

	public String getImg2Size() {
		return img2Size;
	}

	public void setImg2Size(String img2Size) {
		this.img2Size = img2Size;
	}
}
